{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/lists/index')}">抽奖管理</a></li>
            <li class="layui-this">积分详情</li>
        </ul>
        <div class="layui-tab-content">
            <hr>
            <form action="" method="post" class="ajax-form">
                <div class="layui-tab-item layui-show">
                    
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <th style="width: 30px;">ID</th>
                            <th>描述</th>
                            <th>操作时间</th>
                        </tr>
                        </thead>
                        {if condition="$data"}
                        <tbody>
                        {foreach name="data" item="v"}
                        <tr>
                            <td>{$v.id}</td>
                            <td>{$v.detail}</td>
                            <td>{$v.add_time|date="Y-m-d H:i:s",###}</td>
                        </tr>
                        {/foreach}
                        {else/}
                        <tr>
                            <td colspan="15" style="text-align: center;"><i class="fa fa-exclamation-circle"></i>没有数据</td>
                        </tr>
                        {/if}
                        </tbody>
                    </table>
                    <!--分页-->
                    {$page}
                </div>
            </form>
        </div>
    </div>
</div>
{/block}